<template>
  <el-row :gutter="20">
    <el-col :span="6">
      <el-button type="primary" @click="callParentaddItemHandler()"> 添加</el-button>
    </el-col>
  </el-row>
</template>

<script lang="ts" setup>
const emits = defineEmits(['callParentaddItemHandler'])

const callParentaddItemHandler = () => {
  emits('callParentaddItemHandler')
}

// import type { FormInstance } from 'element-plus'
// import { type RuleFormInfo } from '../NavigatorOne/Option2.vue'
// import type { Ref } from 'vue'

// const { ruleFormInfo, ruleFormRef, dialogFormVisible } = defineProps<{
//   ruleFormInfo: RuleFormInfo
//   ruleFormRef: FormInstance
//   dialogFormVisible: Ref<boolean>
// }>()

// /**
//  * 添加数据
//  */
// const addItemHandler = () => {
//   ruleFormInfo.value = {
//     type: 'add',
//     title: '添加角色'
//   }
//   // 清空验证
//   ruleFormRef.value?.clearValidate()
//   // 重置表单
//   ruleFormRef.value?.resetFields()
//   dialogFormVisible.value = true
// }
</script>

<style lang="scss" scoped></style>
